package cn.jingyuan.swan.example.nio.server;


public class NioServer {

    /*
        参考链接：
            https://www.cnblogs.com/duanxz/p/6759689.html
     */

    public static void main(String[] args) throws InterruptedException {
        ServerReactorTask serverReactorTask = new ServerReactorTask();

        new Thread(serverReactorTask)
            .start();


        Thread.sleep(60000);

        serverReactorTask.stopServer();
    }

}
